obj-m = netfilter_exp.o
CURRENT_PATH = $(shell pwd)
LINUX_KERNEL = $(shell uname -r)
LINUX_KERNEL_PATH = /usr/src/linux-headers-$(LINUX_KERNEL)

TARGET: uninstall clean all install

all:
	make -C $(LINUX_KERNEL_PATH) M=$(CURRENT_PATH) modules

install:
	insmod netfilter_exp.ko

uninstall:
	rmmod netfilter_exp.ko

clean:
	make -C $(LINUX_KERNEL_PATH) M=$(PWD) clean